﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace First.Areas.Login.Controllers
{
    public class MyLoginController : Controller
    {
        // GET: Login/MyLogin
        
        [AllowAnonymous]
        public ActionResult Index()
        {

            return View();
        }
        [AllowAnonymous]
        public ActionResult list(string name)
        {
            var query = new { Name = name, Role = "admin" };
            //StreamReader stream = new StreamReader(System.Web.HttpContext.Current.Request.InputStream);
            Session["userInfo"] = query;
           // string json = HttpUtility.UrlDecode(stream.ReadToEnd());
            return Content("/Index/Index");
        }
    }
}